package com.zxl.diy.weather.location;

import android.location.Location;

/**
 * Created by Administrator on 2016/11/5.
 */
public interface OnLocationStatusListener {

    /**
     * 没有权限
     */
    int LOCATION_23_NO_PERMISSION = 1;

    /**
     * GPS没有打开或不可用
     */
    int LOCATION_GPS_UNABLED = 2;

    /**
     * 数据为空
     */
    int LOCATION_NULL = 5;



    /** 网络不可用 */
    int LOCATION_NETWORK_ERROR = 7;

    /** 定位超时 */
    int LOCATION_TIME_OUT = 9;

    /** 某项定位功能关闭 */
    int LOCATION_PROVIDER_UNABLED = 2;
    /** 某项定位功能系统不支持 */
    int LOCATION_PROVIDER_UNSUPPORTED = 3;

    /**
     * 定位失败
     * @param status
     */
    void onLocationFailed(int status);

    /**
     * 定位成功
     * @param curLocation
     */
    void onLocationSuccess(Location curLocation);
}

